package com.kaikeba.homework.spring.service.impl;

import com.kaikeba.homework.spring.dao.GoodsDao;
import com.kaikeba.homework.spring.model.Goods;
import com.kaikeba.homework.spring.service.GoodsService;

import java.util.List;

/**
 * 商品业务实现
 *
 * @author pengxinkui
 */
public class GoodsServiceImpl implements GoodsService {
    // 依赖注入GoodsDao
    private GoodsDao goodsDao;

    public List<Goods> listGoods() {
        return goodsDao.listAllGoods();
    }
}
